.class final Lcom/estrongs/android/pop/utils/p$w;
.super Ljava/lang/Object;
.source "FileOperateUtils.java"

# interfaces
.implements Les/y80;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/utils/p;->b(Landroid/app/Activity;Ljava/util/List;Lcom/estrongs/fs/g;ZLes/z80;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/i70;

.field final synthetic b:Landroid/app/Activity;

.field final synthetic c:Lcom/estrongs/fs/g;

.field final synthetic d:Ljava/util/List;

.field final synthetic e:Ljava/util/List;


# direct methods
.method constructor <init>(Les/i70;Landroid/app/Activity;Lcom/estrongs/fs/g;Ljava/util/List;Ljava/util/List;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    iput-object p2, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    iput-object p3, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    iput-object p4, p0, Lcom/estrongs/android/pop/utils/p$w;->d:Ljava/util/List;

    iput-object p5, p0, Lcom/estrongs/android/pop/utils/p$w;->e:Ljava/util/List;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private a(Z)V
    .locals 10

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    invoke-virtual {p1}, Les/i70;->K()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    const-string v0, "item_count"

    const/4 v1, 0x0

    if-lez p1, :cond_4

    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    invoke-virtual {p1}, Les/i70;->K()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 3
    new-instance p1, Ljava/util/LinkedList;

    invoke-direct {p1}, Ljava/util/LinkedList;-><init>()V

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    invoke-virtual {v2}, Les/i70;->K()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    .line 5
    invoke-interface {v3}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Les/o10;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 6
    invoke-virtual {p1, v3}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 7
    invoke-virtual {p1, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 8
    :cond_1
    new-instance v2, Ljava/util/LinkedList;

    invoke-direct {v2}, Ljava/util/LinkedList;-><init>()V

    .line 9
    invoke-virtual {p1}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_2
    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 10
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v4

    invoke-virtual {v4, v3}, Les/p10;->c(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 11
    invoke-interface {v3, v0}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_2

    .line 12
    invoke-static {v3}, Lcom/estrongs/android/pop/utils/p;->a(Lcom/estrongs/fs/g;)I

    move-result v4

    if-nez v4, :cond_2

    .line 13
    invoke-virtual {v2, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 14
    :cond_3
    invoke-virtual {v2}, Ljava/util/LinkedList;->size()I

    move-result p1

    if-lez p1, :cond_4

    .line 15
    new-instance p1, Les/c70;

    iget-object v3, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    invoke-static {v3}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v3

    invoke-direct {p1, v3, v2, v1}, Les/c70;-><init>(Lcom/estrongs/fs/f;Ljava/util/List;Z)V

    invoke-virtual {p1, v1}, Les/s80;->b(Z)V

    .line 16
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    const-string v2, "child_count"

    invoke-interface {p1, v2}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/p;->b(Lcom/estrongs/fs/g;)I

    .line 18
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object p1

    iget-object v3, p0, Lcom/estrongs/android/pop/utils/p$w;->d:Ljava/util/List;

    .line 19
    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 20
    invoke-virtual {p1, v3}, Les/p10;->c(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 21
    invoke-interface {p1, v2}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_5

    .line 22
    invoke-static {p1}, Lcom/estrongs/android/pop/utils/p;->b(Lcom/estrongs/fs/g;)I

    .line 23
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    invoke-interface {p1, v0}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_6

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/p;->a(Lcom/estrongs/fs/g;)I

    .line 25
    :cond_6
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    instance-of p1, p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz p1, :cond_c

    .line 26
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->c:Lcom/estrongs/fs/g;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;)V

    .line 27
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->e:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_2
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 28
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;)V

    goto :goto_2

    .line 29
    :cond_7
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    check-cast p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    if-eqz p1, :cond_9

    .line 30
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_8

    .line 31
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 32
    :cond_8
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    new-instance v2, Lcom/estrongs/android/pop/utils/a;

    invoke-direct {v2, p1}, Lcom/estrongs/android/pop/utils/a;-><init>(Lcom/estrongs/android/view/FileGridViewWrapper;)V

    invoke-virtual {v0, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 33
    :cond_9
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->b:Landroid/app/Activity;

    check-cast p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object p1

    .line 34
    invoke-static {p1}, Lcom/estrongs/android/statistics/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 35
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->e:Ljava/util/List;

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/p;->c(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    const-wide/16 v5, 0x0

    .line 36
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->e:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    move-wide v6, v5

    :goto_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 37
    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v8

    add-long/2addr v6, v8

    goto :goto_3

    .line 38
    :cond_a
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    .line 39
    invoke-virtual {p1}, Les/s80;->m()I

    move-result p1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_b

    const/4 v1, 0x1

    const/4 v5, 0x1

    goto :goto_4

    :cond_b
    const/4 v5, 0x0

    :goto_4
    iget-object p1, p0, Lcom/estrongs/android/pop/utils/p$w;->a:Les/i70;

    .line 40
    invoke-virtual {p1}, Les/s80;->l()Les/u80;

    move-result-object p1

    iget v8, p1, Les/u80;->a:I

    const-string v2, "move_to"

    .line 41
    invoke-static/range {v2 .. v8}, Lcom/estrongs/android/pop/utils/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJI)V

    :cond_c
    return-void
.end method


# virtual methods
.method public a(Les/s80;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/utils/p$w;->a(Z)V

    return-void
.end method
